<extend name="../layout" />

<block name="main_content">
    <div class="widget-box">
        <div class="widget-title"> <span class="icon"> <i class="icon-info-sign"></i> </span>
            <h5>{$chartTitle}</h5>
        </div>
        <div class="widget-content">
            
            <div class="row-fluid">
                <div class="span3">
                    <div class="widget-box">
                        <div class="widget-title"> <span class="icon"> <i class="icon-info-sign"></i> </span>
                            <h5>销售总览</h5>
                        </div>
                        <div class="widget-content nopadding">
                            <table class="table">
                                <tr>
                                    <td>销售数量</td>
                                    <td>{$data.sale_num}</td>
                                </tr>
                                <tr>
                                    <td>销售额</td>
                                    <td>{$data.sale_amount}</td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="span3">
                    <div class="widget-box">
                        <div class="widget-title"> <span class="icon"> <i class="icon-info-sign"></i> </span>
                            <h5>仓库总览</h5>
                        </div>
                        <div class="widget-content nopadding">
                            <table class="table">
                                <tr>
                                    <td>出库数量</td>
                                    <td>{$data.stockout_num}</td>
                                </tr>
                                <tr>
                                    <td>入库数量</td>
                                    <td>{$data.stockin_num}</td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row-fluid">
                <div class="span12">
                    <div class="widget-box">
                        <div class="widget-title"> <span class="icon"> <i class="icon-info-sign"></i> </span>
                            <h5>财务总览</h5>
                        </div>
                        <div class="widget-content nopadding">
                            <table class="table table-bordered table-striped">
                                <tr>
                                    <td>资金收入</td>
                                    <td>{$data.finance_receive.amount}</td>
                                    <td rowspan="3">
                                        <volist name="data.finance_receive.detail" id="dfrd">
                                            {$dfrd.type|toTypeName}: {$dfrd.amount}<br />
                                        </volist>
                                        <br />
                                        <volist name="data.finance_pay.detail" id="dfrd">
                                            {$dfrd.type|toTypeName}: {$dfrd.amount}<br />
                                        </volist>
                                    </td>
                                </tr>
                                <tr>
                                    <td>资金支出</td>
                                    <td>{$data.finance_pay.amount}</td>
                                </tr>
                                <tr>
                                    <td>利润</td>
                                    <td>{$data.finance_profit}</td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            
            
        </div>
    </div>
</block>